[##include file="common/header.tpl.php"##]
[##include file="common/nav.tpl.php"##]
<script type="text/javascript" src="[##$adminurl##]/static/js/input.lucky.js"></script>
<div id="main">  
    <table class=gridView>
  <thead>
  <tr>
    <td>应用名</td>
    <td>今日</td>
    <td>日同比</td>
    <td>周同比</td>
    <td>月同比</td>
  </tr>
  </thead>
  [##section name=i loop=$rs##]
  <tr>
    <td>[##$rs[i].type##]</td>
    <!--当日访问统计行--> 
    <td>[##$rs[i].now_day_count##]</td>
    <!--日同比访问统计行-->
    [##if $rs[i].now_day_count eq 0 && $rs[i].last_day_count eq 0##]
    <td>0</td>
    [##elseif $rs[i].now_day_count eq 0##]
    <td><font color="#FF0000">-[##$rs[i].last_day_count*100##]%</font></td>
    [##elseif $rs[i].last_day_count eq 0##]
    <td>[##$rs[i].now_day_count*100##]%</td>
    [##elseif $rs[i].last_day_count > [##$rs[i].now_day_count##]##]
    <td><font color="#FF0000">[##(($rs[i].now_day_count-$rs[i].last_day_count)/$rs[i].last_day_count)|truncate:5:""##]%</font></td>
    [##elseif $rs[i].now_day_count eq $rs[i].last_day_count##]
    <td>0</td>
    [##else##]
    <td>[##(($rs[i].now_day_count-$rs[i].last_day_count)/$rs[i].last_day_count*100)|truncate:5:""##]%</td>
    [##/if##]
<!--周同比访问统计行-->
    [##if $rs[i].now_week_count eq 0 && $rs[i].last_week_count eq 0##]
    <td>0</td>
    [##elseif $rs[i].now_week_count eq 0##]
    <td><font color="#FF0000">-[##$rs[i].last_week_count*100##]%</font></td>
    [##elseif $rs[i].last_week_count eq 0##]
    <td>[##$rs[i].now_week_count*100##]%</td>
    [##elseif $rs[i].last_week_count > [##$rs[i].now_week_count##]##]
    <td><font color="#FF0000">[##(($rs[i].now_week_count-$rs[i].last_week_count)/$rs[i].last_week_count)|truncate:5:""##]%</font></td>
    [##elseif $rs[i].now_week_count eq $rs[i].last_week_count##]
    <td>0</td>
    [##else##]
    <td>[##(($rs[i].now_week_count-$rs[i].last_week_count)/$rs[i].last_week_count*100)|truncate:5:""##]%</td>
    [##/if##]
<!--月同比访问统计行-->
    [##if $rs[i].now_mouth_count eq 0 && $rs[i].last_mouth_count eq 0##]
    <td>0</td>
    [##elseif $rs[i].now_mouth_count eq 0##]
    <td><font color="#FF0000">-[##$rs[i].last_mouth_count*100##]%</font></td>
    [##elseif $rs[i].last_mouth_count eq 0##]
    <td>[##$rs[i].now_mouth_count*100##]%</td>
    [##elseif $rs[i].last_mouth_count > [##$rs[i].now_mouth_count##]##]
    <td><font color="#FF0000">[##(($rs[i].now_mouth_count-$rs[i].last_mouth_count)/$rs[i].last_mouth_count)|truncate:5:""##]%</font></td>
    [##elseif $rs[i].now_mouth_count eq $rs[i].last_mouth_count##]
    <td>0</td>
    [##else##]
    <td>[##(($rs[i].now_mouth_count-$rs[i].last_mouth_count)/$rs[i].last_mouth_count*100)|truncate:5:""##]%</td>
    [##/if##]
  </tr>
  [##/section##]
</table>
</div>

[##include file="common/footer.tpl.php"##]

